import StatusEnum from "@/enums/StatusEnum";
import {
  hospitalType,
  hospitalLevel
} from '/src/api/baseInfo/hospital'
import {
  search
} from "@/api/pharmacy/drug";

/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
  label: "ID",
  prop: "id",
  isSearch: false,
  isTable: true
}, {
  label: "头像",
  prop: "cover_img",
  isTable: true,
  formType: "imageAvatar",
}, {
  label: "医生姓名",
  prop: "name",
  isTable: true,
  isSearch: true,
  isForm: true,
  formType: "input",
}, {
  label: "手机号",
  prop: "mobile",
  isTable: true,
  isSearch: true,
  isForm: true,
  formType: "input",
}, {
  label: "所属MCN机构",
  prop: "name",
  isTable: true,
  isSearch: true,
  isForm: true,
  formType: "input",
}, {
  label: "所属医院",
  prop: "name",
  isTable: true,
  isSearch: true,
  isForm: true,
  formType: "input",
}, {
  label: "所属互联网医院",
  prop: "name",
  isTable: true,
  isSearch: true,
  isForm: true,
  formType: "input",
}, {
  label: "创建时间",
  prop: "created_at",
  isTable: true,
}, {
  label: "创建人",
  prop: "created_name",
  isTable: true,
}, {
  label: "最近修改时间",
  prop: "updated_at",
  isTable: true,
}, {
  label: "最近修改人",
  prop: "updated_name",
  isTable: true,
}, {
  label: "状态",
  prop: "status",
  isSearch: true,
  isTable: true,
  formType: "radio",
  defaultValue: 0,
  enum: StatusEnum
}]
const tableConfig = {
  selection: true,
  editBtnShow: true,
  editBtnPath: "/user/doctor/edit",
  buttons: ["view", "edit", "status"]
}
const pageConfig = {
  small: false,
  disabled: false,
  background: false,
}

export {
  tableColumn,
  tableConfig,
  pageConfig
};
